Open the repo at https://github.com/dlab-berkeley/Geospatial-Fundamentals-in-R-with-sf
- Clone the repo or download and unzip the zip file
- Take note of the folder in which the files are located
Start RStudio and open a new script, or ./docs/01-core_concepts_and_plotting.Rmd
Set your working directory to the folder you unzipped
Install the required libraries in RStudio, if you do not have them already
install.packages(c("ggplot2", "sf", "tmap", "raster"),
dependencies=TRUE)
}
- Open the slides, ./docs/01-core_concepts_and_plotting.Rmd, in your browser (or click the “Part 1 Slides” link the repo).